<template>
  <a-drawer
    width="45%"
    :title="formTitle"
    :label-col="4"
    :wrapper-col="14"
    :visible="open"
    :body-style="{ height: 'calc(100vh - 100px)', overflow: 'auto' }"
    @close="cancel"
  >
    <a-form-model ref="form" :model="form" :rules="rules" layout="vertical">
      <a-spin :spinning="spinning" :delay="delayTime" tip="Loading...">
        <a-row :gutter="32">
          <a-col :span="12">
            <a-form-model-item label="创建者" prop="userId">
              <a-input v-model="form.userId" placeholder="请输入创建者" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="创建部门" prop="deptId">
              <a-input v-model="form.deptId" placeholder="请输入创建部门" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="创建名称" prop="userName">
              <a-input v-model="form.userName" placeholder="请输入创建名称" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="部门名称" prop="deptName">
              <a-input v-model="form.deptName" placeholder="请输入部门名称" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="公司ID" prop="companyId">
              <a-input v-model="form.companyId" placeholder="请输入公司ID" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="姓名" prop="name">
              <a-input v-model="form.name" placeholder="请输入姓名" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="电话" prop="phone">
              <a-input v-model="form.phone" placeholder="请输入电话" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="所属企业" prop="companyName">
              <a-input
                v-model="form.companyName"
                placeholder="请输入所属企业"
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="职务" prop="zhiwu">
              <a-input v-model="form.zhiwu" placeholder="请输入职务" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="是否党员" prop="isdangyuan">
              <a-input v-model="form.isdangyuan" placeholder="请输入是否党员" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="报告时间" prop="baogaoTime">
              <a-input v-model="form.baogaoTime" placeholder="请输入报告时间" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="报告事由" prop="baogaoshiyou">
              <a-textarea
                v-model="form.baogaoshiyou"
                placeholder="请输入报告事由"
                :rows="4"
              />
            </a-form-model-item>
          </a-col>
        </a-row>
        <a-row :gutter="32">
          <a-col :span="12">
            <a-form-model-item label="办理时间" prop="banliTime">
              <a-input v-model="form.banliTime" placeholder="请输入办理时间" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="办理地点" prop="banliAddress">
              <a-textarea
                v-model="form.banliAddress"
                placeholder="请输入办理地点"
                :rows="4"
              />
            </a-form-model-item>
          </a-col>
        </a-row>
        <a-row :gutter="32">
          <a-col :span="12">
            <a-form-model-item label="参加人数" prop="counts">
              <a-input-number
                v-model="form.counts"
                :min="0"
                style="width: 100%"
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="排序" prop="sort">
              <a-input-number
                v-model="form.sort"
                :min="0"
                style="width: 100%"
              />
            </a-form-model-item>
          </a-col>
        </a-row>
      </a-spin>
      <div class="bottom-control">
        <a-space>
          <a-button @click="cancel"> 取消 </a-button>
          <a-button type="primary" @click="submitForm"> 保存 </a-button>
        </a-space>
      </div>
    </a-form-model>
  </a-drawer>
</template>
<script>
import BizTaizhang001EditForm from "./BizTaizhang001Form";
export default {
  ...BizTaizhang001EditForm,
};
</script>
